package cn.com.db.dao;

import cn.com.db.model.DiyOrder;
import cn.com.db.model.DiyWork;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface DiyWorkDao {

    void createDiyWork(DiyWork diyWork);

    DiyWork getDiyWorkById(@Param("id") String id);

    List<DiyWork> getUserDiyWork(@Param("userId") String userId,
                                 @Param("rowStart") Integer rowStart,
                                 @Param("pageSize")Integer pageSize);
    Integer countUserDiyWork(@Param("userId") String userId);

}
